package com.chushouya.product.dto.admin.productsku;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商品SKU更新DTO
 */
@Data
@ApiModel(value = "商品SKU更新DTO")
public class ProductSkuUpdateDTO {

    @ApiModelProperty(value = "SKUID", required = true)
    @NotNull(message = "SKUID不能为空")
    private Long skuId;

    @ApiModelProperty(value = "商品ID", required = true)
    @NotNull(message = "商品ID不能为空")
    private Long productId;

    @ApiModelProperty(value = "商品SKU编码", required = true)
    @NotBlank(message = "商品SKU编码不能为空")
    private String skuCode;

    @ApiModelProperty(value = "商品SKU规格")
    private String skuAttrCode;

    @ApiModelProperty(value = "SKU名称", required = true)
    @NotBlank(message = "SKU名称不能为空")
    private String skuName;

    @ApiModelProperty(value = "SKU最高估价")
    private BigDecimal basePrice;

    @ApiModelProperty(value = "最低评估价")
    private BigDecimal minPrice;

    @ApiModelProperty(value = "估价计算方式")
    private Integer calcType;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "操作管理员")
    private String handleUser;

    @ApiModelProperty(value = "SKU Json数据结构")
    private String skuData;
}
